package com.abner.design.patterns.mediator;

/**
 * 抽象类
 * @author abner
 */
public abstract class Colleague {

	/**
	 * 中介者
	 */
	private Mediator mediator;

	/**
	 * 名称
	 */
	public String name;

	public Colleague(Mediator mediator, String name) {
		this.mediator = mediator;
		this.name = name;
	}

	public Mediator getMediator() {
		return this.mediator;
	}

	/**
	 * 发消息
	 * @param stateChange
	 */
	public abstract void sendMessage(int stateChange);
}
